package demo.spring.ex01.hello;

import java.text.SimpleDateFormat;
import java.util.Date;

public class JustTest {

	class Foo {
		public String sayHello(String name){
			return String.format("hello %s", name);
		}
		public void hello(){
			System.out.println( sayHello("世界!") );
		}
	}
	
	public void hello(){
		Foo foo = new Foo(){
			public String sayHello(String name){
				return String.format("你好, %s", name);
			}
		};
//		System.out.println( foo.sayHello("wxg") );
		foo.hello();
	}
	
	public static void main(String[] args) {
		new JustTest().hello();
		Date date = new Date(5516075349620653480L);
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
		System.out.println( sdf.format(date) );
	}
	
}
